﻿<UserControl x:Class="IndexMarkSilverlightClient.Views.Controls.ReportsControls.LIDIA"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="475" d:DesignWidth="710" xmlns:c1chart="clr-namespace:C1.Silverlight.Chart;assembly=C1.Silverlight.Chart" xmlns:dataInput="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.Input" SizeChanged="UserControl_SizeChanged">
    
    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="10*" x:Name="column0"/>
            <ColumnDefinition Width="Auto" />
        </Grid.ColumnDefinitions>

        <Grid.RowDefinitions>
            <RowDefinition Height="1*"/>
            <RowDefinition Height="10*" x:Name="row1"/>
        </Grid.RowDefinitions>

        
        <TextBlock x:Name="LidiaHeader" Text="Лепестковая диаграмма распределения итоговых индексов по разделам ИС" TextAlignment="Center" VerticalAlignment="Center" FontFamily="Arial" FontSize="18" TextWrapping="Wrap" Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2"/>

        <StackPanel Orientation="Vertical" Grid.Column="1" Grid.Row="1" VerticalAlignment="Center" HorizontalAlignment="Stretch">
            <!--<TextBlock Text="Периоды:"/>
            <ListBox x:Name="TermLB" MinHeight="120">
                <ListBox.ItemTemplate>
                    <DataTemplate>
                        <StackPanel Orientation="Horizontal">
                            <TextBlock Text="{Binding Path=Start, Converter={StaticResource DateTimeToYearConverter}}"/>
                            <TextBlock Text=" - "/>
                            <TextBlock Text="{Binding Path=Stop, Converter={StaticResource DateTimeToYearConverter}}"/>
                        </StackPanel>
                    </DataTemplate>
                </ListBox.ItemTemplate>
            </ListBox>-->
            <TextBlock Text="Разделы ИС:" VerticalAlignment="Center"/>
            <ItemsControl x:Name="SectionLB" VerticalAlignment="Center" 
                     HorizontalAlignment="Stretch" MinHeight="120" Width="200">
                <ItemsControl.ItemTemplate>
                    <DataTemplate>
                        <!--<CheckBox IsChecked="{Binding Check,Mode=TwoWay}" Content="{Binding}"
                                  Click="SectionLB_SelectionChanged"/>-->
                        <TextBlock Text="{Binding}" TextWrapping="Wrap" Margin="0,2" />
                    </DataTemplate>
                    </ItemsControl.ItemTemplate>
            </ItemsControl>
        </StackPanel>
        
        
        <c1chart:C1Chart x:Name="LIDIAChart" Grid.Row="1" ChartType="RadarFilled" 
                         HorizontalAlignment="Stretch" VerticalAlignment="Stretch" 
                         Aggregate="None" MinHeight="400" MinWidth="400">
            <c1chart:C1Chart.View>
                <c1chart:ChartView>
                    <c1chart:ChartView.AxisY>
                        <c1chart:Axis AutoMin="False" Min="0"/>
                    </c1chart:ChartView.AxisY>
                </c1chart:ChartView>
            </c1chart:C1Chart.View>
            <c1chart:C1Chart.Data>
                <c1chart:ChartData ItemNames="P1 P2 P3 P4 P5">
                    <c1chart:DataSeries Values="5 10 15 3 4" />
                </c1chart:ChartData>
            </c1chart:C1Chart.Data>
            <c1chart:C1ChartLegend Position="Bottom">
            </c1chart:C1ChartLegend>
        </c1chart:C1Chart>
        
    </Grid>
</UserControl>
